<div class="cil__detail-rest-info--label">{{'BIZ.STORE.OTHER.TRADE' | i18n}}</div>
<app-info-row
  *ngFor="let column of columns[fields.TradeFunction]; let rowIndex = index"
  [columns]="column"
  [ifEdit]="isEdits[fields.TradeFunction][rowIndex]"
  (active)="activeItem($event, rowIndex)"
  [rowIndex]="rowIndex"
></app-info-row>

<ng-template #tpRefundMode>
  <nz-radio-group [(ngModel)]="data.isRefundAsync">
    <label nz-radio [nzValue]="false">{{'BIZ.STORE.OTHER.TRADE.REFUND_MODE.SYNC' | i18n}}</label>
    <label nz-radio [nzValue]="true">{{'BIZ.STORE.OTHER.TRADE.REFUND_MODE.ASYNC' | i18n}}</label>
  </nz-radio-group>
</ng-template>
<ng-template #tpIsSupportTips>
  <nz-switch
    [(ngModel)]="data.isSupportTips"
    [nzCheckedChildren]="'GENERAL.INFO.SWITCH.ON' | i18n"
    [nzUnCheckedChildren]="'GENERAL.INFO.SWITCH.OFF' | i18n"
  ></nz-switch>
</ng-template>

<ng-template #tpTradeOperate let-rowIndex="rowIndex">
  <app-rest-edit
    [editing]="isEdits[fields.TradeFunction][rowIndex]"
    (edit)="edit(fields.TradeFunction, rowIndex)"
    (cancel)="cancel()"
    (submit)="submit()"
  ></app-rest-edit>
</ng-template>
